//
//  MapTrajectory.h
//  carcareIOS
//
//  Created by wr on 15/6/30.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MapHelper.h"
#import "DrivesModel.h"
typedef NS_ENUM(NSInteger , Map_Type) {
    Map_Type_NoTouch,//不可以点击
    Map_Type_CanTouch,//可以点击
};
@protocol MapTrajectoryDelegate <NSObject>

-(void)trajectoryEnd;

@end

@interface MapTrajectory : NSObject

@property (nonatomic, assign) id<MapTrajectoryDelegate> delegate;

@property (nonatomic, strong) MAMapView *mapView;

//地图被单击的时候  返回 事件
@property (nonatomic , copy) void (^mapDidTouch)();

-(void)showLocation;//显示定位地图中心

- (instancetype)initWithType:(Map_Type)type withModel:(OneDriveModel *)model;

- (void) reloadPolyLine;//开始绘画
//-(void)startMoving;
//-(void)stopMoving;

@end
